<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			/**
			 * value
			 * 表单
			 */
			window.onload = function(){
				var btn = document.getElementById("btn");
				var text = document.getElementById("text");
				
				console.log(btn.value);
				console.log(text.value);
				
				text.value = "kaivon";
			}
		</script>
		<input type="button" id="btn" value="按钮" />
		<input type="text" name = "text" id="text" value="这是一段文字" />
	</body>
</html>
